Skip to content

RigidBody

Inherits Physical

Inherited by Entity, Tool

RigidBody is the base class for object affected by physics, and can also be used as a container for other physics objects.

Properties

Velocity : Vector3

Determines the linear velocity of this object.

AngularVelocity : Vector3

Determines the angular velocity of this object.

UseGravity : boolean

Determines whether the entity is affected by gravity.

Mass : number

Determines the mass of the entity.

Friction : number

Determines the friction of the entity.

Drag : number

Determines the drag (air resistance) of the entity.

AngularDrag : number

Determines the angular drag of the entity.

Bounciness : number

Determines the bounciness of the entity.